<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>giftcard列表</em></a>  </div>
</div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0">
      <thead>
          <tr>
            <th align="center">订单号</th>  
            <th align="center">赠送人名字</th>           
            <th align="center">赠送人邮箱</th>
            <th align="center">接收人名字</th>
            <th align="center">接收人邮箱</th>
            <th align="center">邮件发送时间</th>
            <th align="center">礼品卡编码</th>            
            <th align="center">礼品卡面额</th>
            <th align="center">使用礼品卡时间</th>
            <th align="center">礼品卡使用人邮箱</th>
            <th align="center">使用语言</th>
            <th align="center">黑色星期五优惠码</th>
          </tr>
      </thead>
                <tbody>
                    <?php 
                    foreach($list as $k=>$v):?>
                    <tr>
                        <td align="center"><?php echo $v['order_id']?></td>
                        <td align="center"><?php echo $v['from_name']?></td>
                        <td align="center"><?php echo $v['user_email']?></td>
                        <td align="center"><?php echo $v['to_name']?></td>
                        <td align="center"><?php echo $v['recipient_email']?></td>
                        <td align="center"><?php echo !empty($v['email_send_time']) ? date("Y-m-d H:i",$v['email_send_time']) : '未寄出'?></td>
                        <td align="center"><?php echo $v['gift_code']?></td>
                        <td align="center"><?php echo $v['amount']?></td>
                        <td align="center"><?php echo !empty($v['use_gift_time']) ? date("Y-m-d H:i",$v['use_gift_time']) : '未使用'?></td>
                        <td align="center"><?php echo $v['card_user_email']?></td>
                        <td align="center"><?php echo $language[$v['language_id']]['name']?></td>   
                        <td align="center"><?php echo $v['coupon_code']?></td>
                    </tr>
                    <?php endforeach;?>
		</tbody>
	</table>
	<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>
